package Demo2;

public class Rabbit extends Animal{


    public Rabbit() {
    }

    public Rabbit(String name, String color, String kind) {
        super(name, color, kind);
    }

    public void eat() {
        System.out.println("兔子是"+getKind()+",爱吃胡萝卜");
    }

    public void yell() {
        System.out.println("那只"+getColor()+"的，名叫"+getName()+"的兔子正在叽叽的叫");
    }
}
